package com.shop.cereshop.agent.page.referral;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

/**
 * @description: 代理商辖区店铺订单详情响应VO
 * @author
 * @date 2025/11/8
 * @version 1.0
 */
@Data
@ApiModel(value = "AgentShopOrderDetailVO", description = "代理商辖区店铺订单详情响应")
public class AgentShopOrderDetailVO {

  @ApiModelProperty(value = "订单ID")
  private Long orderId;

  @ApiModelProperty(value = "订单编号")
  private String orderNumber;

  @ApiModelProperty(value = "下单时间")
  private String createTime;

  @ApiModelProperty(value = "订单状态")
  private Integer orderState;

  @ApiModelProperty(value = "订单金额")
  private BigDecimal orderAmount;

  @ApiModelProperty(value = "分润金额")
  private BigDecimal incomeAmount;

  @ApiModelProperty(value = "订单商品列表")
  private List<OrderGoodsVO> goodsList;

  /**
   * 订单商品VO
   */
  @Data
  @ApiModel(value = "OrderGoodsVO", description = "订单商品信息")
  public static class OrderGoodsVO {

    @ApiModelProperty(value = "商品ID")
    private Long productId;

    @ApiModelProperty(value = "商品名称")
    private String productName;

    @ApiModelProperty(value = "商品图片")
    private String productImage;

    @ApiModelProperty(value = "商品价格")
    private BigDecimal price;

    @ApiModelProperty(value = "购买数量")
    private Integer quantity;

    @ApiModelProperty(value = "小计金额")
    private BigDecimal subtotal;
  }
}
